﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Admin_TempleList.aspx.cs"
    Inherits="Master_Admin_TempleList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link href="Css/Css.css" rel="stylesheet" type="text/css" />

    <script language="javascript" src="../Script/formValidator/jquery_last.js"></script>

    <script language="javascript" src="../Script/public.js"></script>

</head>
<body>
    <form id="Form1" runat="server">
    <table width="100%" border="0" cellspacing="1" cellpadding="0" align="center" class="border">
        <tr>
            <td colspan="9" align="center" class="title">
                <strong>
                    <%=TempleTypeName %>模板列表管理</strong>
            </td>
        </tr>
        <tr>
            <td height="25" align="center" class="title">
                <strong style="color: #666666">ID</strong>
            </td>
            <td  align="center" class="title">
                <strong style="color: #666666">模板名称</strong>
            </td>
            <td align="center" class="title">
                <strong style="color: #666666">使用权限</strong>
            </td>            
            <td  align="center" class="title">
                <strong style="color: #666666">文件夹路径</strong>
            </td>
            <td  align="center" class="title">
                <strong style="color: #666666">缩略图</strong>
            </td>
            <td align="center" class="title">
                <strong style="color: #666666">所需点数</strong>
            </td>
            <td  align="center" class="title">
                <strong style="color: #666666">操作</strong>
            </td>
        </tr>
        <asp:Repeater ID="Repeater1" runat="server" 
            onitemcommand="Repeater1_ItemCommand" 
            onitemdatabound="Repeater1_ItemDataBound">
            <ItemTemplate>
                <tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
                    <td align="center">
                        <%#Eval("id") %>
                    </td>
                    <td align="center">
                        <%#Eval("TempleName") %>
                    </td>
            <td align="center">
                <%#ChannelTypesBind(Eval("types")) %>
            </td>                       
                    <td align="center">
                        <%#configInfo.InstallDir+Admin_SkinFolder((AspNetCs.Enumerations.Channel_Enum.Channel_Type)TempleTypeId)+"/" + Eval("Templepath")+"/"%>
                    </td>
                    <td align="center">
                        <img src="<%#configInfo.InstallDir+Eval("Thumbimg") %>" width="100" height="80" border="0" />
                    </td>
                    <td align="center">
                        <%#Eval("point","{0:0.##}") %>点
                    </td>
                    <td align="center">
                        <input type="button" name="Submit3" value=" 修 改" onclick="javascript:location.href='Admin_TempleAdd.aspx?Action=Modify&id=<%#Eval("id") %>&channelId=<%=TempleTypeId %>'">
                       <asp:Button ID="Button1" runat="server" Text=" 删 除" CommandArgument='<%#Eval("id") %>'
                            CommandName="delinfo" OnClientClick="javascript:return confirm('您是否真的删除此条模板信息? 一旦删除将无法恢复')" />
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                <asp:Panel ID="pl_nothing" runat="server" Visible="false">
                    <tr class="tdbg">
                        <td colspan="9" align="center">
                            暂无数据，请先添加模板
                        </td>
                    </tr>
                </asp:Panel>
            </FooterTemplate>
        </asp:Repeater>
        <tr class="tdbg">
            <td align="right" colspan="7">
                <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged"
                    CurrentPageButtonPosition="Beginning" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条"
                    LayoutType="Table" NumericButtonTextFormatString="[{0}]" PageIndexBoxType="DropDownList"
                    PageSize="15" ShowCustomInfoSection="Left" ShowPageIndexBox="Always" SubmitButtonText="Go"
                    TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" UrlPaging="True">
                </webdiyer:AspNetPager>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
